package cn.samir.sudoku.core;

public class SettingItem implements Comparable<SettingItem> {
	public static final int Item_Settings = 10010;
	public static final int Item_LoginOut = 10040;
	public static final int Item_Login = 10020;
	public static final int Item_share = 10030;
	public static final int Item_rank = 10021;
	public String text;
	public int resId;
	public int position;
	public int id;
	public String imgpath;// 与resId 选1

	public SettingItem() {
		super();
	}

	public SettingItem(int resId, Integer position) {
		super();
		this.resId = resId;
		this.position = position;
		this.text = null;
	}

	public SettingItem(String text, String imgpath, Integer position, int id) {
		super();
		this.text = text;
		this.position = position;
		this.id = id;
		this.imgpath = imgpath;
		resId = 0;
	}

	public SettingItem(String text, int resId, Integer position, int id) {
		super();
		this.text = text;
		this.resId = resId;
		this.position = position;
		this.id = id;
	}

	@Override
	public int compareTo(SettingItem another) {

		if (position > another.position) {
			return 1;
		} else {
			return -1;
		}
	}
}
